Replication Files for "Information Control and Public Support for Social Credit Systems in China"
The Journal of Politics
By Xu Xu, Genia Kostka, and Xun Cao


***** Notes *****
1. Please set the working directory to the folder where the readme.txt file is located.

2. Please run the R and Stata data-processing codes consecutively to replicate the tables and figures.

3. The following file descriptions explain data sources and details about the replication files.

4. Codes wrote for running Stata 14 and R 4.0.3 on Mac OS Big Sur (V11.4).

5. Required Stata and R packages for replication are specified in the Stata do files and R program files.

6. The "maps" folder stores shape files that are used to produce Figure 2.


***** Folders and Files *****

* Data Files *
(in the "data" folder)

1. collegesurvey.dta
-- Field survey experiments conducted by the authors among 750 students in three universities in East, North, and West China in March 2019.
-- Including a survey experiment.

2. nationwidesurvey.dta
-- A nationwide online survey conducted by the authors between February and April 2018 through a foreign-based survey company.

* Stata and R Code Files *
(in the "program" folder)

1. main.R
-- R code for producing figures and tables in the main manuscript
-- Please run these scripts in order

2. appendix_r.R
-- R code for producing figures and tables in the online appendix
-- Please run these scripts in order

3. appendix_stata.do
-- Stata code for producing figures and tables in the online appendix
-- Please run these scripts in order

4. map.R
-- R code for producing figure 2
-- Please run these scripts in order

* Folders for storing output files

1. "outputmain" folder
-- Folder for storing figures and tables in the main manuscript
-- foldercontentmain.txt file lists the files that will be produced by the map.R and main.R codes

2. "outputapp" folder
-- Folder for storing figures and tables in the online appendix
-- foldercontentapp.txt file lists the files that will be produced by the appendix_r.R and appendix_stata.do codes

* codebook *

1. Codebook.pdf
-- Codebook for the "collegesurvey.dta" and the "nationwidesurvey.dta" datasets
